package com.neusoft.kq.demos.service.Impl;

import com.neusoft.kq.demos.entity.User;
import com.neusoft.kq.demos.mapper.UserMapper;
import com.neusoft.kq.demos.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User>selectList(User user){
        return userMapper.selectList(user);
    }

    @Override
    public  void addUser(User user)
    {
        userMapper.addUser(user);
    }

    @Override
    public void updateUser(User user){
        userMapper.updateUser(user);
    }
}
